package com.example.customview.bezier

import android.content.Context
import android.view.View
import com.android.baselibrary.base.CommonRouterManger
import com.android.baselibrary.customview.BaseCustomView
import com.example.customview.BR
import com.example.customview.R
import com.example.customview.arouter.CustomArouter
import com.example.customview.bean.BezierViewModel

class BezierMainView(context: Context) :BaseCustomView<BezierViewModel>(context) {
    override fun onClick(v: View?) {
        CommonRouterManger.instance.navigationActivityParams(
            CustomArouter.CUSTOM_CONTAINER_ACTIVITY,
            CustomArouter.EXTRA_KEY_FRAGMENT_PATH to viewModel.path
        )
    }

    override fun setViewLayoutId(): Int {
        return  R.layout.item_bezier_main
    }

    override fun getBR(): Int {
        return BR.viewModel
    }

    override fun initView(data: BezierViewModel?) {

    }
}